//
//  MailTableViewCell.m
//  Utils
//
//  Created by enghou on 2018/4/12.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "MailTableViewCell.h"

@interface MailTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *senderLbl;

@property (weak, nonatomic) IBOutlet UILabel *dateLbl;

@property (weak, nonatomic) IBOutlet UILabel *titleLbl;

@property (weak, nonatomic) IBOutlet UILabel *detailLbl;

@end

@implementation MailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(MailBoxItemModel *)model{
    _model = model;
    self.senderLbl.text = _model.user_name;
    self.dateLbl.text = _model.time;
    self.titleLbl.text = _model.title;
    self.detailLbl.text = _model.detail;
    if (_model.readyet) {
        self.senderLbl.textColor = [UIColor colorWithHexString:@"999999"];
        self.titleLbl.textColor = [UIColor colorWithHexString:@"999999"];
        self.detailLbl.textColor = [UIColor colorWithHexString:@"999999"];
    }else{
        self.senderLbl.textColor = [UIColor blackColor];
        self.titleLbl.textColor = [UIColor blackColor];
        self.detailLbl.textColor = [UIColor blackColor];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
